package com.easygoods.dao;

import com.easygoods.base.BaseDao;
import com.easygoods.entity.MemberPoint;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by 许崇雷 on 2019-01-17.
 */
@Repository
public interface MemberPointDao extends BaseDao<MemberPoint> {
    //计算过期积分合计
    int sumExpirePoint(@Param("memberId") String memberId, @Param("gainYear") int gainYear);

    //重新 sum 用户的积分
    int reSumPoint(@Param("memberId") String memberId);
}
